'use strict';
module.exports = app => {
  // 商品sku表
  const {STRING, INTEGER, FLOAT} = app.Sequelize;
  const AttributesValue = app.model.define('s_attributesValue', {
    id: {type: INTEGER, primaryKey: true, autoIncrement: true},
    photo: {
      type: STRING,
      comment: '图片地址',
    },
    attribute_id: {
      type: INTEGER,
      comment: '分类ID',
      allowNull: false,
    },
    attribute_value: {
      type: STRING,
      comment: '属性名称',
      allowNull: false,
    },
  });

  return AttributesValue;
};
